package com.yanqu.road.logic.bussiness.notice;

import com.yanqu.road.entity.notice.NoticeRecord;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class NoticeRecordBussiness {

    public static Map<Long, Map<Integer, NoticeRecord>> getNoticeRecordMap() {
        return DaoHelper.getNoticeRecordDaoImpl().getNoticeRecordMap();
    }

    public static boolean addNoticeRecord(NoticeRecord data) {
        return DaoHelper.getNoticeRecordDaoImpl().add(data);
    }

    public static boolean updateNoticeRecord(NoticeRecord data) {
        return DaoHelper.getNoticeRecordDaoImpl().update(data);
    }

}
